package com.inforich.app.api.controller.tourist;

import com.inforich.common.core.domain.AjaxResult;
import com.inforich.tourist.service.ICommodityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: 产品
 * @author: HJM
 * @date: 2022/10/28
 */
@RestController
@RequestMapping("/h5api/commodity")
public class AppCommodityController {

  @Autowired
  private ICommodityService commodityService;

  /**
   * 产品列表
   */
  @GetMapping("/all")
  public AjaxResult all() {
    return AjaxResult.success(commodityService.list());
  }

}
